package com.qrxl.user.vo.req;

import com.qrxl.common.EnumValue;
import com.qrxl.enums.EnumSysFlag;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

@Data
@ApiModel(value = "用户新增请求参数", description = "请求参数类")
public class UserAddReq {

    @NotBlank(message = "登录名不能为空")
    @ApiModelProperty(value = "登录名", required = true)
    private String loginName;

    @ApiModelProperty(value = "md5加密")
    @NotBlank(message = "密码不能为空")
    private String password;

    @ApiModelProperty(value = "姓名", required = true)
    @NotBlank(message = "姓名不能为空")
    private String userName;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "账号类型")
    private Integer type;

    @ApiModelProperty(value = "启停状态：EnumSysFlag")
    @EnumValue(enumClass = EnumSysFlag.class, message = "启停状态不合法")
    private Integer validFlag;
}
